<template lang="pug">
  div.static-wrap
    div.label(:style="`color: ${color}`")
      span {{label}}
    div.value.f-number(:style="`color: ${color}`")
      //CountTo(:endVal="value")
      span {{value}}
      | {{suffix}}
</template>

<script>
export default {
  name: "StaticSimpleView",
  props: {
    label: String,
    value: [Number, String],
    color: String,
    suffix: String,
  }
}
</script>

<style lang="scss" scoped>
.static-wrap{
  display: flex;
  align-items: center;
  .label{
    display: flex;
    align-items: center;
    &:before{
      background-color: currentColor;
      content: '';
      display: block;
      @include size(rem(5), rem(10));
      margin-right: rem(10);
    }
    span{
      color: $base_label_color;
      font-size: rem(16);
      font-weight: bold;
    }
  }
  .value{
    flex: 1;
    font-size: rem(26);
    text-align: right;
    font-weight: bold;
  }
}
</style>
